﻿using System.Web.Mvc;

namespace OnlineMealOrdering.Areas.WebSiteManage
{
    public class WebSiteManageAreaRegistration : AreaRegistration
    {
        public override string AreaName
        {
            get
            {
                return "WebSiteManage";
            }
        }

        public override void RegisterArea(AreaRegistrationContext context)
        {
            context.MapRoute(
                "WebSiteManage_default",
                "WebSiteManage/{controller}/{action}/{id}",
                new { area = "WebSiteManage", controller = "Home", action = "Index", id = UrlParameter.Optional },
                new string[] { "OnlineMealOrdering.Areas.WebSiteManage.Controllers" }
            );            
        }
    }
}
